import * as Router from 'koa-router';

import { ActivityHelper } from '../../../activity/ActivityHelper';

export default async (ctx: Router.IRouterContext, next: () => Promise<any>): Promise<any> => {

    const info = await ActivityHelper.getInstance().GetProgress();
    // const info = await ActivityHelper.getInstance().GetProgressT();

    const rtn = {
        name: 'game progress',
        message: 'game progress',
        ip: ctx.request.ip,
        info
    };

    ctx.body = rtn;
};
